SRCS := $(wildcard *.cpp)
OUTS := $(patsubst %.cpp, %, $(SRCS)) 

COM_OP := -Wall -g
CC := g++

all: $(OUTS)
%: %.cpp
	$(CC) $^ -o $@ $(COM_OP)

.PHONY: clean rebuild
clean:
	$(RM) $(OUTS)
rebuild: clean $(OUTS)

